const valueSetAPI = {
  // 根据值集代码查询值集
  getValueSetByCode: code => {
    return $http
      .get(`${window.RPConfig.setting}/valueset/item/list?vsCode=${code}`, {})
      .then(response => response.data);
  },
  // 根据值集代码、父级值key查询值集
  GetValueSetByCodeAndParentKey: param => {
    return $http
      .get(`${window.RPConfig.setting}/valueset/item/list?vsCode=${param.code}&vsiParentKey=${param.parentKey}`, {})
      .then(response => response.data);
  }
};
export default valueSetAPI;
